﻿@model Citi.Scheduler.WebUi.Models.EscalationModel

@using (Ajax.BeginForm("ActionForm", "Escalation", new AjaxOptions { UpdateTargetId = "divIndexEscalation", InsertionMode = InsertionMode.Replace }))
{
    @Html.ValidationSummary(true)
    <fieldset>

        @Html.HiddenFor(model => model.UserId)
        @Html.HiddenFor(model => model.RoutineId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Minutes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Minutes)
            @Html.ValidationMessageFor(model => model.Minutes)
        </div>
        
        <table>
            <tr>
                <td>@Html.LabelFor(model => model.Coordinator)</td>
                <td>@Html.LabelFor(model => model.Manager)</td>
                <td>@Html.LabelFor(model => model.Head)</td>
            </tr>
            <tr>
                <td>@Html.CheckBoxFor(model => model.Coordinator)</td>
                <td>@Html.CheckBoxFor(model => model.Manager)</td>
                <td>@Html.CheckBoxFor(model => model.Head)</td>
            </tr>

        </table>

        <div class="editor-label">
            @Html.LabelFor(model => model.OtherEmail1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OtherEmail1)
            @Html.ValidationMessageFor(model => model.OtherEmail1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OtherEmail2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OtherEmail2)
            @Html.ValidationMessageFor(model => model.OtherEmail2)
        </div>

        @if (Model != null && Model.Id != 0)
        {
            @Html.HiddenFor(model => model.Id)
        }
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}